package com.chenfubing.ps.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfubing.ps.entity.Appointment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenfubing
 * @since 2020-05-05
 */
public interface AppointmentMapper extends BaseMapper<Appointment> {

    Page<Appointment> getAppointmentPage(Page<Appointment> page);

    List<Appointment> getAppointmentList(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime, @Param("license") String license);

}
